import { createApp } from 'vue';
import App from '@/App.vue';
import router from '@/router';
import { createPinia } from 'pinia';
import piniaPersist from 'pinia-plugin-persist';
import echarts from '@/util/echarts.js';
import Antd from 'ant-design-vue';
import 'ant-design-vue/dist/antd.css';

const app = createApp(App);
const pinia = createPinia();
pinia.use(piniaPersist);

app.config.globalProperties.$echarts = echarts

app
  .use(router)
  .use(Antd)
  .use(pinia)
  .mount('#app');
